package com.gulimall.product.feign;

import com.gulimall.common.to.es.SkuEsModel;
import com.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author 张鹏
 * @company 公司名称
 * @create 2021-12-14-17:26
 */
@Component
@FeignClient(value = "gulimall-search")
public interface SearchFeignService {


    //上架商品
    @PostMapping("/search/save/product")
    R productStatusUp(@RequestBody List<SkuEsModel> skuEsModels);
}
